﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Footer.ascx.cs" Inherits="X.WebSite.Controls.Footer" %>
<div id="footer">
    <div>
        <a href="/SiteMap.aspx" title="Site Map">Site Map</a>&nbsp;::&nbsp;
        <%
            string[] pageKeys = new string[] { X.Common.XConst.PAGE_AboutUs, X.Common.XConst.PAGE_Conditions, X.Common.XConst.PAGE_Privacy };
            System.Collections.Generic.IList<X.Entity.PageInfo> list = X.Bll.Page.GetPageList(pageKeys);

            for (int i = 0; i < list.Count; i++)
            {
                Response.Write(string.Format("<a href=\"/{0}\" title=\"{1}\">{2}</a>&nbsp;::&nbsp;", list[i].PageName, X.Common.StringUtils.HtmlDecode(list[i].PageDescription), list[i].PageDescription));
            }
            
        %><a href="/Tag.aspx" title="Search Tag">Search Tag</a>
    </div>
    <p>
        <% 
            Response.Write(string.Format("Copyright &copy; {0}.&nbsp;", DateTime.Now.Year));
            X.Entity.SiteInfo siteInfo = X.Bll.Params.GetSiteInfo();

            Response.Write(string.Format("<span><a href=\"http://{0}\">{1}</a></span> Powered by <span><a href=\"http://{0}\">{0}</a></span>", siteInfo.SiteUrl, siteInfo.SiteName));
        %></p>
</div>
